gnttab: miscellaneous fixes
authorJan Beulich <jbeulich@suse.com>
Thu, 9 Feb 2012 15:39:16 +0000 (16:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 9 Feb 2012 15:39:16 +0000 (16:39 +0100)
commit3299823b5902cb29510efeaf2a3e1fc68c97a8f5
tree0c6dfdb66e876d1d33f7f115b9b5a23d7a6f993f
parent66edeb2e39727952a2a909f57aaa2f614cfbb8bb
gnttab: miscellaneous fixes

- _GTF_* constants name bit positions, so binary arithmetic on them is
  wrong
- gnttab_clear_flag() cannot (on x86 and ia64 at least) simply use
  clear_bit(), as that may access more than the two bytes that are
  intended to be accessed

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/grant_table.c
xen/include/asm-ia64/grant_table.h
xen/include/asm-x86/grant_table.h